<template>
	<view class="content">
		<!-- <view class="main">
			啊啊啊啊啊
		</view> -->
		<rich-text class="main" :nodes="html"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				html:'',
				title:''
			}
		},
		onLoad(options) {
			this.title = options.title
			uni.setNavigationBarTitle({
			    title: options.title
			});
			this.loadData(options.id)
		},
		methods: {
			loadData(id){
				this.$http.post('/api/index/detail',{id}).then(res => {
					// console.log(res)
					this.html = res.data.data.content;
				})
			},
			
		}
	}
</script>

<style lang="scss" scoped>
.content{
	min-height: 100vh;
	background-color: #F8F8F8;
	overflow: hidden;
}
.main{
	width: 690rpx;
	background:rgba(255,255,255,1);
	border-radius:20px;
	padding: 60rpx 30rpx;
	box-sizing: border-box;
	margin: 30px auto;
	display: block;
}
</style>
